﻿@model IEnumerable<OdeToFood.Models.Restaurant>

<table id="searchResults">
    <tr>
        <th>
            Name
        </th>
        <th>
            Address
        </th>
    </tr>


@foreach (var item in Model)
{
    
     <tr>
        <td>
            @Html.ActionLink(item.Name, "Details", "Restaurant", new {id = item.ID },null)               
        </td>
        <td>
            @item.Address.street, @item.Address.city, @item.Address.state
        </td>
    </tr>

}

</table>